# Contributor: Jay Christopherson <jaychris@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=udpcast
pkgver=20230924
pkgrel=1
pkgdesc="Multicast file transfer tool"
url="https://www.udpcast.linux.lu/"
arch="all"
license="GPL-2.0-or-later AND BSD-2-Clause"
makedepends="linux-headers m4 perl"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.udpcast.linux.lu/download/udpcast-$pkgver.tar.gz
	console.patch
	fix-includes.patch
	"
options="!check" # no tests provided

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3b56e6e524d8e7ebc230cfecc9e3af590ad29963cba44f24663d0f361c294c85a54fa8cedbdf48276a76fcf772ce9a2b2d65854f71d8336e73a98aec56b822bc  udpcast-20230924.tar.gz
7abfcf317b5985f680258abc913a48cfd21a26f77625780e57d93960f7efeb0f214ce4d4188bd75cedb9dccac5a5fe9befed2044e3df3b0e8228ac6e0663c41c  console.patch
f10cc923f445fc5e0e828d2e7d21febcaa16a1ec65538c5736ae4eadd3251ab65740b827f9d5bfb77b5ce5908a490588751d349cf5f711a41951ddcee090de8a  fix-includes.patch
"
